# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

# ----------------------------------------------------------------------
# arrow_io : Arrow IO interfaces

add_arrow_test(buffered_test PREFIX "arrow-io")
add_arrow_test(compressed_test PREFIX "arrow-io")
add_arrow_test(file_test PREFIX "arrow-io")

if(ARROW_HDFS)
  add_arrow_test(hdfs_test
                 NO_VALGRIND
                 PREFIX
                 "arrow-io"
                 EXTRA_LINK_LIBS
                 Boost::filesystem
                 Boost::system)
endif()

add_arrow_test(memory_test PREFIX "arrow-io")

add_arrow_benchmark(file_benchmark PREFIX "arrow-io")

if(NOT (${ARROW_SIMD_LEVEL} STREQUAL "NONE") AND NOT (${ARROW_SIMD_LEVEL} STREQUAL "NEON"
                                                     ))
  # This benchmark either requires SSE4.2 or ARMV8 SIMD to be enabled
  add_arrow_benchmark(memory_benchmark PREFIX "arrow-io")
endif()

# Headers: top level
arrow_install_all_headers("arrow/io")
